//
//  UrlInfo.m
//  gdemm
//
//  Created by 乔明超 on 16/11/9.
//  Copyright © 2016年 Goldencis. All rights reserved.
//

#import "UrlInfo.h"

@implementation UrlInfo
- (instancetype)initWithDictionary:(NSDictionary *)dict{
    
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dict];
        //[self updateState];
    }
    return self;
}
+ (instancetype)urlInfoWithDictionary:(NSDictionary *)dict{
    
    return [[self alloc]initWithDictionary:dict];
    
}

+ (NSArray *)urlInfoWithArray:(NSArray *)array{
    
    NSMutableArray *arr = [NSMutableArray array];
    for (NSDictionary *dict in array) {
        [arr addObject:[self urlInfoWithDictionary:dict]];
    }
    
    return arr;
}

@end
